<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>

<body>
  <form action="/upload/avator" method="POST" enctype="multipart/form-data">
    <input type="file" name="avator">
    <button type="submit">form上传</button>
  </form>

  <form>
    <input type="file" id="ajaxImg">
    <button type="button" id="ajaxBtn">AJAX单图上传</button>
  </form>

  <form>
    <input type="file" id="mulImg" multiple>
    <button type="button" id="mulBtn">AJAX多图上传</button>
  </form>

  <script src="/js/jquery-1.11.1.js"></script>
  <script src="/js/index.js"></script>
</body>

</html>